package com.xgpro.common.utils;

import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Properties;

/**
 * @author ：TengXun
 * @date ：Created in 2019/3/29 22:40
 */
public class ReadPropertiesUtil {
        private static Properties prop = new Properties();

        static {
            try {
                prop.load(new InputStreamReader(ReadPropertiesUtil.class.getClassLoader().getResourceAsStream("config.properties"),"UTF-8"));
            } catch (IOException e) {
                e.printStackTrace();
            }
        }

        public static String readUrl(String key) {
            return (String) prop.get(key);
        }
}
